package tk.mystudio.idc.constant;

/**
 * 增删改查处理结果通用常量类
 * @author <a href="mailto:jhezjkp@163.com">蒋昆朋</a>
 *
 */
public class CRUDResult {
	
	/**
	 * 操作对象不存在(删除或更新时)－－1
	 */
	public static final int TARGET_NOT_EXIST = -1;

	/**
	 * 保存成功－10
	 */
	public static final int SAVE_SUCCESS = 10;
	
	/**
	 * 保存失败－11
	 */
	public static final int SAVE_FAIL = 11;
	
	/**
	 * 删除成功－20
	 */
	public static final int DELETE_SUCCESS = 20;
	
	/**
	 * 删除失败－21
	 */
	public static final int DELETE_FAIL = 21;
	
	/**
	 * 更新成功－30
	 */
	public static final int UPDATE_SUCCESS = 30;
	
	/**
	 * 更新失败－31
	 */
	public static final int UPDATE_FAIL = 31;
	
}
